1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
|
<!-- SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com> -->
<!-- SPDX-License-Identifier: AGPL-3.0-or-later WITH AdditionRef-Progmasoft-Patent-Grant-1.1 -->
<script setup lang="ts">
import { home, projectSample, terminalSample } from "~/content/home";
import { localeOfPrefix } from "~/content/locales";
import {
firstDocPage,
latestChannel,
latestRelease,
releaseNotes,
repository,
} from "~/content/site";
definePageMeta({
validate: (route) =>
localeOfPrefix(typeof route.params.locale === "string" ? route.params.locale : undefined) !==
undefined,
});
const { locale, to } = useSiteLocale();
const text = computed(() => home[locale.value]);
usePageHead(() => text.value);
// The headline is two sentences; the second carries the colour of the leopard.
const headline = computed(() => {
const [first, ...rest] = text.value.headline.split(". ");
return { first: rest.length ? `${first}.` : first, second: rest.join(". ") };
});
</script>
<template>
<div>
<section class="hero">
<div class="shell hero-grid">
<div class="hero-copy">
<a class="release" :href="releaseNotes">
<span class="badge"
>{{ text.release.replace("{version}", latestRelease) }} · {{ latestChannel }}</span
>
<span class="arrow" aria-hidden="true">→</span>
</a>
<p class="eyebrow">{{ text.eyebrow }}</p>
<h1>
{{ headline.first }}
<span v-if="headline.second" class="accent">{{ headline.second }}</span>
</h1>
<p class="lead"><ProseText :text="text.lead" /></p>
<div class="actions">
<NuxtLink class="button button-gold" :to="to(firstDocPage)">{{ text.start }}</NuxtLink>
<NuxtLink class="button button-ghost" :to="to('/docs/reference/commands')">{{
text.commands
}}</NuxtLink>
</div>
</div>
<div class="hero-art" aria-hidden="true">
<TazelLogo mark class="leopard" />
<div class="terminal">
<span class="dots"><i /><i /><i /></span>
<pre><code>{{ terminalSample }}</code></pre>
</div>
</div>
</div>
</section>
<section class="section">
<div class="shell">
<div class="section-heading">
<h2>{{ text.featuresHeading }}</h2>
<p>{{ text.featuresLead }}</p>
</div>
<ul class="features">
<li v-for="(feature, index) in text.features" :key="feature.title">
<span class="icon"><FeatureIcon :index="index" /></span>
<h3>{{ feature.title }}</h3>
<p><ProseText :text="feature.text" /></p>
</li>
</ul>
</div>
</section>
<section class="section section-muted">
<div class="shell sample">
<div>
<div class="section-heading">
<h2>{{ text.stepsHeading }}</h2>
<p>{{ text.sampleLead }}</p>
</div>
<ol class="steps">
<li v-for="step in text.steps" :key="step.title">
<h3>{{ step.title }}</h3>
<p><ProseText :text="step.text" /></p>
</li>
</ol>
</div>
<CodeBlock label="BUILD.kts" :code="projectSample" />
</div>
</section>
<section class="closing">
<div class="shell closing-inner">
<div>
<h2>{{ text.closingHeading }}</h2>
<p>{{ text.closingText }}</p>
</div>
<a class="button button-gold" :href="repository">{{ text.closingAction }}</a>
</div>
</section>
</div>
</template>
<style scoped>
.hero {
position: relative;
overflow: hidden;
padding-block: 88px 96px;
background:
radial-gradient(circle at 78% 30%, rgb(242 184 75 / 14%), transparent 38%),
radial-gradient(circle at 10% 110%, rgb(13 116 134 / 55%), transparent 45%),
linear-gradient(160deg, var(--brand-900), var(--brand-950));
color: #fff;
}
.hero-grid {
display: grid;
grid-template-columns: 1.1fr 1fr;
align-items: center;
gap: 56px;
}
/* A wide terminal scrolls inside its cell instead of widening the page. */
.hero-grid > *,
.sample > * {
min-width: 0;
}
.release {
display: inline-flex;
align-items: center;
gap: 10px;
padding: 4px 14px 4px 4px;
border: 1px solid rgb(255 255 255 / 18%);
border-radius: 999px;
color: #d9eaed;
font-size: 0.9rem;
}
.release:hover {
border-color: rgb(255 255 255 / 40%);
text-decoration: none;
}
/* The arrow points onward in the reading direction. */
:root[dir="rtl"] .arrow {
display: inline-block;
transform: scaleX(-1);
}
.badge {
padding: 2px 10px;
border-radius: 999px;
background: var(--gold);
color: var(--brand-950);
font-weight: 700;
}
.eyebrow {
margin: 28px 0 10px;
color: var(--gold);
font-weight: 650;
letter-spacing: 0.04em;
text-transform: uppercase;
font-size: 0.85rem;
}
h1 {
margin: 0;
font-size: clamp(2.3rem, 5vw, 3.6rem);
line-height: 1.08;
letter-spacing: -0.03em;
}
.accent {
display: block;
color: var(--gold);
}
.lead {
max-width: 560px;
margin: 22px 0 0;
color: #c9dde1;
font-size: 1.15rem;
}
.actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 34px;
}
.hero-art {
position: relative;
min-height: 340px;
}
.leopard {
position: absolute;
inset-inline-end: -8%;
top: -6%;
width: 115%;
color: rgb(255 255 255 / 7%);
}
.terminal {
position: relative;
margin-top: 80px;
border: 1px solid rgb(255 255 255 / 12%);
border-radius: 12px;
background: rgb(2 22 27 / 82%);
box-shadow: 0 30px 60px rgb(0 0 0 / 35%);
direction: ltr;
text-align: left;
}
.dots {
display: flex;
gap: 6px;
padding: 12px 14px 0;
}
.dots i {
width: 10px;
height: 10px;
border-radius: 50%;
background: rgb(255 255 255 / 18%);
}
.dots i:first-child {
background: var(--gold);
}
.terminal pre {
margin: 0;
padding: 14px 18px 20px;
overflow-x: auto;
color: #dcebee;
font-size: 0.88rem;
line-height: 1.7;
}
.features {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
margin: 0;
padding: 0;
list-style: none;
}
.features li {
padding: 26px;
border: 1px solid var(--line);
border-radius: var(--radius);
background: var(--surface-raised);
transition:
border-color 0.15s,
box-shadow 0.15s;
}
.features li:hover {
border-color: var(--brand-600);
box-shadow: var(--shadow);
}
.icon {
display: inline-flex;
padding: 10px;
border-radius: 10px;
background: var(--brand-100);
color: var(--link);
}
.features h3,
.steps h3 {
margin: 16px 0 8px;
font-size: 1.1rem;
}
.features p,
.steps p {
margin: 0;
color: var(--ink-700);
}
.sample {
display: grid;
grid-template-columns: 1fr 1fr;
align-items: center;
gap: 56px;
}
.steps {
margin: 0;
padding: 0;
list-style: none;
counter-reset: step;
}
.steps li {
position: relative;
padding-inline-start: 56px;
counter-increment: step;
}
.steps li + li {
margin-top: 24px;
}
.steps li::before {
content: counter(step);
position: absolute;
inset-inline-start: 0;
top: 12px;
display: grid;
place-items: center;
width: 38px;
height: 38px;
border-radius: 50%;
background: var(--brand-900);
color: var(--gold);
font-weight: 700;
}
.steps h3 {
margin-top: 12px;
}
.closing {
padding-block: 64px;
background: linear-gradient(120deg, var(--brand-800), var(--brand-900));
color: #fff;
}
.closing-inner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 32px;
}
.closing h2 {
margin: 0 0 8px;
font-size: 1.8rem;
}
.closing p {
max-width: 640px;
margin: 0;
color: #c9dde1;
}
@media (max-width: 960px) {
.hero-grid,
.sample {
grid-template-columns: 1fr;
}
.hero-art {
min-height: 0;
}
.terminal {
margin-top: 0;
}
.features {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 640px) {
.hero {
padding-block: 56px 64px;
}
.features {
grid-template-columns: 1fr;
}
.closing-inner {
flex-direction: column;
align-items: flex-start;
}
}
</style>
|